"use strict";
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
        if (ar || !(i in from)) {
            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
            ar[i] = from[i];
        }
    }
    return to.concat(ar || Array.prototype.slice.call(from));
};
Object.defineProperty(exports, "__esModule", { value: true });
var vue_router_1 = require("vue-router");
var icons_vue_1 = require("@element-plus/icons-vue");
var element_plus_1 = require("element-plus");
var router = (0, vue_router_1.useRouter)();
// 返回首页
var handleBackHome = function () {
    router.push('/').then(function () {
        element_plus_1.ElMessage.success('已为您返回首页');
    });
};
// 返回上一页
var handleGoBack = function () {
    if (window.history.length > 1) {
        router.back();
    }
    else {
        router.push('/');
        element_plus_1.ElMessage.info('已无历史记录，为您返回首页');
    }
};
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
var __VLS_ctx = __assign(__assign({}, {}), {});
var __VLS_elements;
var __VLS_components;
var __VLS_directives;
/** @type {__VLS_StyleScopedClasses['error-container']} */ ;
/** @type {__VLS_StyleScopedClasses['back-home-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['go-back-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['error-code']} */ ;
/** @type {__VLS_StyleScopedClasses['error-message']} */ ;
/** @type {__VLS_StyleScopedClasses['error-actions']} */ ;
/** @type {__VLS_StyleScopedClasses['error-icon']} */ ;
/** @type {__VLS_StyleScopedClasses['error-container']} */ ;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "error-page" }));
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "bg-pattern" }));
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "error-container" }));
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "error-icon" }));
var __VLS_0 = {}.ElIcon;
/** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
// @ts-ignore
ElIcon;
// @ts-ignore
var __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
    size: (120),
}));
var __VLS_2 = __VLS_1.apply(void 0, __spreadArray([{
        size: (120),
    }], __VLS_functionalComponentArgsRest(__VLS_1), false));
var __VLS_4 = __VLS_3.slots.default;
var __VLS_5 = {}.WarningFilled;
/** @type {[typeof __VLS_components.WarningFilled, ]} */ ;
// @ts-ignore
icons_vue_1.WarningFilled;
// @ts-ignore
var __VLS_6 = __VLS_asFunctionalComponent(__VLS_5, new __VLS_5({}));
var __VLS_7 = __VLS_6.apply(void 0, __spreadArray([{}], __VLS_functionalComponentArgsRest(__VLS_6), false));
var __VLS_3;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "error-info" }));
__VLS_asFunctionalElement(__VLS_elements.h1, __VLS_elements.h1)(__assign({ class: "error-code" }));
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)(__assign({ class: "error-message" }));
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)(__assign({ class: "error-description" }));
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "error-actions" }));
var __VLS_10 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_11 = __VLS_asFunctionalComponent(__VLS_10, new __VLS_10(__assign(__assign({ 'onClick': {} }, { type: "primary", size: "large" }), { class: "back-home-btn" })));
var __VLS_12 = __VLS_11.apply(void 0, __spreadArray([__assign(__assign({ 'onClick': {} }, { type: "primary", size: "large" }), { class: "back-home-btn" })], __VLS_functionalComponentArgsRest(__VLS_11), false));
var __VLS_14;
var __VLS_15;
var __VLS_16 = ({ click: {} },
    { onClick: (__VLS_ctx.handleBackHome) });
var __VLS_17 = __VLS_13.slots.default;
// @ts-ignore
[handleBackHome,];
var __VLS_18 = {}.HomeFilled;
/** @type {[typeof __VLS_components.HomeFilled, ]} */ ;
// @ts-ignore
icons_vue_1.HomeFilled;
// @ts-ignore
var __VLS_19 = __VLS_asFunctionalComponent(__VLS_18, new __VLS_18(__assign({ class: "mr-2" })));
var __VLS_20 = __VLS_19.apply(void 0, __spreadArray([__assign({ class: "mr-2" })], __VLS_functionalComponentArgsRest(__VLS_19), false));
var __VLS_13;
var __VLS_23 = {}.ElButton;
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
// @ts-ignore
ElButton;
// @ts-ignore
var __VLS_24 = __VLS_asFunctionalComponent(__VLS_23, new __VLS_23(__assign(__assign({ 'onClick': {} }, { size: "large" }), { class: "go-back-btn" })));
var __VLS_25 = __VLS_24.apply(void 0, __spreadArray([__assign(__assign({ 'onClick': {} }, { size: "large" }), { class: "go-back-btn" })], __VLS_functionalComponentArgsRest(__VLS_24), false));
var __VLS_27;
var __VLS_28;
var __VLS_29 = ({ click: {} },
    { onClick: (__VLS_ctx.handleGoBack) });
var __VLS_30 = __VLS_26.slots.default;
// @ts-ignore
[handleGoBack,];
var __VLS_31 = {}.ArrowLeft;
/** @type {[typeof __VLS_components.ArrowLeft, ]} */ ;
// @ts-ignore
icons_vue_1.ArrowLeft;
// @ts-ignore
var __VLS_32 = __VLS_asFunctionalComponent(__VLS_31, new __VLS_31(__assign({ class: "mr-2" })));
var __VLS_33 = __VLS_32.apply(void 0, __spreadArray([__assign({ class: "mr-2" })], __VLS_functionalComponentArgsRest(__VLS_32), false));
var __VLS_26;
__VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)(__assign({ class: "error-footer" }));
__VLS_asFunctionalElement(__VLS_elements.p, __VLS_elements.p)({});
/** @type {__VLS_StyleScopedClasses['error-page']} */ ;
/** @type {__VLS_StyleScopedClasses['bg-pattern']} */ ;
/** @type {__VLS_StyleScopedClasses['error-container']} */ ;
/** @type {__VLS_StyleScopedClasses['error-icon']} */ ;
/** @type {__VLS_StyleScopedClasses['error-info']} */ ;
/** @type {__VLS_StyleScopedClasses['error-code']} */ ;
/** @type {__VLS_StyleScopedClasses['error-message']} */ ;
/** @type {__VLS_StyleScopedClasses['error-description']} */ ;
/** @type {__VLS_StyleScopedClasses['error-actions']} */ ;
/** @type {__VLS_StyleScopedClasses['back-home-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['mr-2']} */ ;
/** @type {__VLS_StyleScopedClasses['go-back-btn']} */ ;
/** @type {__VLS_StyleScopedClasses['mr-2']} */ ;
/** @type {__VLS_StyleScopedClasses['error-footer']} */ ;
var __VLS_export = (await Promise.resolve().then(function () { return require('vue'); })).defineComponent({});
exports.default = {};
